//
//  InstituteDetailIntCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/10/16.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "InstituteDetailIntCell.h"

@implementation InstituteDetailIntCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        
        self.imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgView];
        [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(20));
            make.size.mas_equalTo(CGSizeMake(15, 15));
        }];
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.font = [UIFont systemFontOfSize:13];
        self.titleLabel.textColor = [UIColor lightGrayColor];
        [self.contentView addSubview:_titleLabel];
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.equalTo(_imgView.mas_right).offset(scaleLeftAndRight(10));
            make.height.mas_equalTo(15);
      make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-20));
            
        }];
    }
    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
